package com.luych.toolbox.automation.service.entity;

import com.luych.toolbox.common.enums.AutoTaskHistoryStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "auto_task_history")
public class AutoTaskHistory extends BaseEntity {

    @Column(name = "auto_task_template_id")
    private String autoTaskTemplateId;
    @Column(name = "name")
    private String name;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private AutoTaskHistoryStatus status;
    @Column(name = "error_message")
    private String errorMessage;
    @Column(name = "error_trace")
    private String errorTrace;
    @Column(name = "owner_id")
    private String ownerId;
    @Column(name = "start_date")
    private Date startDate;
    @Column(name = "complete_date")
    private Date completeDate;

    public String getAutoTaskTemplateId() {
        return autoTaskTemplateId;
    }

    public void setAutoTaskTemplateId(String autoTaskTemplateId) {
        this.autoTaskTemplateId = autoTaskTemplateId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AutoTaskHistoryStatus getStatus() {
        return status;
    }

    public void setStatus(AutoTaskHistoryStatus status) {
        this.status = status;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getErrorTrace() {
        return errorTrace;
    }

    public void setErrorTrace(String errorTrace) {
        this.errorTrace = errorTrace;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }
}